package org.jeecg.modules.wlhy.tlaccount.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_tl_account_record
 * @Author: jeecg-boot
 * @Date:   2022-10-08
 * @Version: V1.0
 */
@Data
@TableName("hy_tl_account_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_tl_account_record对象", description="hy_tl_account_record")
public class HyTlAccountRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**操作类型（1充值 2支付运费3收入4提现） */
	@Excel(name = "操作类型", width = 15)
    @ApiModelProperty(value = "操作类型（1充值 2支付运费3收入4提现5预付运费）")
    @Dict(dicCode = "opt_type")
    private String optType;
	/**1收入 2支出*/
//	@Excel(name = "1收入 2支出", width = 15)
    @ApiModelProperty(value = "1收入 2支出")
    private String rt;
	/**钱包id*/
//	@Excel(name = "钱包id", width = 15)
    @ApiModelProperty(value = "钱包id")
    private String walletId;
	/**用户id*/
//	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String bizUserId;
    @ApiModelProperty(value = "根据utype=2货主id；=4司机id；=5车队长id")
    private String uid;
    @ApiModelProperty(value = "云商通订单号")
    private String orderNo;
    @ApiModelProperty(value = "商户订单号")
    private String merOrderNo;
    @ApiModelProperty(value = "平台订单号")
    private String bizOrderNo;


    /**
     * 订单状态：
     * 0-进行中
     * 1-成功；
     * 2-失败；
     * 3-支付确认中。
     */
    @ApiModelProperty(value = "订单状态")
    private String payStatus;

    /**
     * 订单状态：
     * 0-待充值
     * 1-成功；
     * 2-失败；
     * 3-支付确认中。
     * 4-过期
     */
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "tl_pay_status")
    private String st;

    @ApiModelProperty(value = "支付人帐号")
    private String acct;

    @ApiModelProperty(value = "渠道交易流水号")
    private String payInterfaceOutTradeNo;

    @ApiModelProperty(value = "订单支付完成时间")
    private String payDatetime;


	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amt;

    @ApiModelProperty(value = "服务费")
    private BigDecimal costService;

	/**结余*/
//	@Excel(name = "结余", width = 15)
    @ApiModelProperty(value = "结余")
    private BigDecimal lastAmt;

    @Excel(name = "实付运费", width = 15)
    @ApiModelProperty(value = "实付运费")
    private BigDecimal costPayShipping;

    @Excel(name = "公司", width = 15, dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @Dict(dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "分公司")
    private String companyId;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}
